#!/usr/bin/env bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1

sealos exec "mkdir -p /opt/nvidia-gpu-driver"
sealos scp ../opt/NVIDIA-Linux-x86_64-535.86.05.run /opt/nvidia-gpu-driver/
sealos exec "chmod +x /opt/nvidia-gpu-driver/NVIDIA-Linux-x86_64-535.86.05.run"
sealos exec "/opt/nvidia-gpu-driver/NVIDIA-Linux-x86_64-535.86.05.run --no-x-check --install-compat32-libs -s"
